package com.summer.ProxyAOP;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;

@Aspect
public class MyProxy {
    @Before("execution(void com.summer.ProxyAOP.Tank.move())")
    public void before(){
        System.out.println("开始之前");
    }
    @After("execution(void com.summer.ProxyAOP.Tank.move())")
    public void end(){
        System.out.println("结束之后");
    }
}
